package com.example.jd.finance.entity.vo;

import com.example.jd.finance.entity.MsCustomerRecordsPush;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * todo
 *
 * @author daolai.fu
 * @description
 * @date 2021/11/10 14:31
 */
@Data
@Builder
public class PushAppVo {

    /**
     * 企业微信号
     */
    private String enterpriseWechatCode;

    /**
     * 当前设备
     */
    private String currentDevice;

    /**
     * 1-下发增加好友 2-待定
     */
    private Integer taskType = 1;


    private List<MsCustomerRecordsPush> list;


    public static PushAppVo generatePushAppVo(String e,String d, List<MsCustomerRecordsPush> l){
        return PushAppVo.builder()
                .enterpriseWechatCode(e)
                .taskType(1)
                .currentDevice(d)
                .list(l)
                .build();
    }

}
